package com.celesea.auth.dept.v1.controller.resource;

import com.celesea.auth.dept.vo.DeptVo;
import com.celesea.framework.vo.DictionaryVo;
import org.springframework.beans.BeanUtils;

import java.util.List;

/**
 * ${DESCRIPTION}
 *
 * @author JackYuan
 * @create 2017-10-29 22:21
 */
public class DeptResource {
    private String id;
    private String name;
    private String code;
    private Integer sort;
    private String description;
    private Byte companyFlag;
    private DictionaryVo admin;
    private DictionaryVo parent;
    private List<DictionaryVo> admins;
    private List<DictionaryVo> members;
    private List<DictionaryVo> invisibleMembers;

    public DeptResource(DeptVo deptVo) {
        BeanUtils.copyProperties(deptVo,this);
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public Integer getSort() {
        return sort;
    }

    public void setSort(Integer sort) {
        this.sort = sort;
    }

    public DictionaryVo getParent() {
        return parent;
    }

    public void setParent(DictionaryVo parent) {
        this.parent = parent;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public List<DictionaryVo> getMembers() {
        return members;
    }

    public void setMembers(List<DictionaryVo> members) {
        this.members = members;
    }

    public List<DictionaryVo> getInvisibleMembers() {
        return invisibleMembers;
    }

    public void setInvisibleMembers(List<DictionaryVo> invisibleMembers) {
        this.invisibleMembers = invisibleMembers;
    }

    public Byte getCompanyFlag() {
        return companyFlag;
    }

    public void setCompanyFlag(Byte companyFlag) {
        this.companyFlag = companyFlag;
    }

    public DictionaryVo getAdmin() {
        return admin;
    }

    public void setAdmin(DictionaryVo admin) {
        this.admin = admin;
    }

    public List<DictionaryVo> getAdmins() {
        return admins;
    }

    public void setAdmins(List<DictionaryVo> admins) {
        this.admins = admins;
    }
}
